import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
// import Layout from '../components/HelloWorld.vue'

// const routes: Array<RouteRecordRaw> = [
//   {
//   //路由初始指向
//     path: '/',
//     name: 'HelloWorld',
//     component:()=>import('../components/HelloWorld.vue'),
//   }
// ]

const router =new createRouter({
    history: createWebHistory(),
    routes: [
        {
            path: "/login",
            name: "Login",
            component: () => import("../views/login/index.vue"),
        },
        {
            path: "/dashboard",
            name: "Dashboard",
            component: () => import("../views/dashboard/index.vue"),
        },
    ]

})
export default router

